import React from 'react';
import { BrowserRouter as Router, Switch, Route } from 'react-router-dom';
import { Home, ProductManagement, SessionTrackManagement } from './components';

const App = () => (
  <Router>
    <Switch>
      <Route path="/" exact component={Home} />
      <Route path="/products" component={ProductManagement} />
      <Route path="/tracks" component={SessionTrackManagement} />
    </Switch>
  </Router>
);

export default App;
